'Declaration
Public Overloads Shared Function EncodeMessage( _ ByVal message As IEncodeable, _ ByVal buffer() As Byte, _ ByVal context As IServiceMessageContext _ ) As ArraySegment(Of Byte)
'Usage
Dim message As IEncodeable Dim buffer() As Byte Dim context As IServiceMessageContext Dim value As ArraySegment(Of Byte) value = JsonEncoder.EncodeMessage(message, buffer, context)
public static ArraySegment<byte> EncodeMessage( IEncodeable message, byte[] buffer, IServiceMessageContext context )
public: static ArraySegment<byte> EncodeMessage( IEncodeable^ message, array<byte>^ buffer, IServiceMessageContext^ context )
Parameters
- message
- buffer
- context